package com.synnex.wms.service;
/**
 * 管理员 接口实现类，service
 * */
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.synnex.wms.mapper.AdminMapper;
import com.synnex.wms.pojo.Admin;

@Service
@Transactional
public class AdminService {

	@Autowired
	private AdminMapper AdminMapper;
	
	public int deleteByPrimaryKey(Integer id){
		return AdminMapper.deleteByPrimaryKey(id);
	}

    public int insert(Admin record){
    	return AdminMapper.insert(record);
    }

    public int insertSelective(Admin record){
    	return AdminMapper.insertSelective(record);
    }

    public Admin selectByPrimaryKey(Integer id){
    	return AdminMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Admin record){
    	return AdminMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Admin record){
    	return AdminMapper.updateByPrimaryKey(record);
    }
    
    public Admin selectByNameAndPword(String Adminname){
    	return AdminMapper.selectByNameAndPword(Adminname);
    }
  
    public List<Admin> selectBy(){
    	return AdminMapper.selectBy();
    }
    
    public List<Admin> showlist(Admin admin){
    	return AdminMapper.showlist(admin);
    }
    public int pagecount(Admin admin){
    	return AdminMapper.pagecount(admin);
    }
    
    
}
